package by.grsu.verkhovodko.page;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import by.grsu.verkhovodko.entity.Passenger;

public class UserPage extends WebPage{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3093187495852703295L;

	@SuppressWarnings({ "rawtypes", "serial" })
	public UserPage(final Passenger passenger){
		super();

		add(new Link("bills") {
			@Override
			public void onClick() {
				setResponsePage(new BillListPage(passenger) );
			}
		});

		add(new Link("chooseTheTrain") {
			@Override
			public void onClick() {
				setResponsePage(new TrainListPageForUser(passenger));
			}
		});
		
	}
}
